#include "logger.h"

logger::logger(char *filename, string debuglevel) {
	this->debuglevel = debuglevel;
	m_stream.open(filename);
}

void logger::debug(string logline, string logdebug) {
	if (debuglevel.compare(logdebug)>=0) {
		m_stream << logline << endl;
	}
}

logger::~logger(){
	m_stream.close();
}
